<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/9/9 0009
 * Time: 下午 8:33
 */

namespace App\Http\Controllers\Admin;

use App\Repositories\ConfigRepository;
use Jinxing\Admin\Http\Controllers\Controller;

class ConfigsController extends Controller
{
    public function __construct(ConfigRepository $repository)
    {
        $this->repository = $repository;
    }

    public function index()
    {
        $system = $this->repository->find(['name' => 'system']);
        return view('admin.configs.index', compact('system'));
    }
}